package lgs.hm.homework.work2;

import org.springframework.stereotype.Component;

@Component
public class Car {
	
	private String brand="奔驰";
	private String place="德国进口";
	
	public Car() {}

	public Car(String brand, String place) {
		super();
		this.brand = brand;
		this.place = place;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	@Override
	public String toString() {
		return "Car [brand=" + brand + ", place=" + place + "]";
	}
	
	

}
